# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=purple-carbons
pkgver=0.2.3
pkgrel=0
pkgdesc="XMPP Message Carbons plugin for libpurple"
arch="all"
url="https://github.com/gkdr/carbons"
license="GPL-3.0-or-later"
makedepends="
	mxml-dev
	pidgin-dev
	purple-xmpp
	"
checkdepends="cmocka-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/gkdr/carbons/archive/v$pkgver.tar.gz"
builddir=$srcdir/carbons-$pkgver

build() {
	make
}

package() {
	DESTDIR=$pkgdir PREFIX=/usr make install
}

check() {
	make test
}

sha512sums="
0ad46a239238bc2907ce0908438d68cc282fc46157dacf4c20cc4cc5ccb07ad3b15e41c407fd94c59e116880913f297d5d84cdb48f0165a8bad88cc279aee11b  purple-carbons-0.2.3.tar.gz
"
